<template>
  <div>
    <basic-table
      :table-title="tableTitle"
      :data-source="dataSource"
      :data-params="dataParams"
      :multiple-table="false"
      class="mt-4"
    />
  </div>
</template>
<script>
import BasicTable from '@/components/BasicTable/index.vue'

import { getQualitySupervisions } from '@/api/project'
export default {
  name: 'BasicInfos',
  components: { BasicTable },
  props: {
    projectId: { type: String, default: '' }
  },
  data() {
    return {
      dataSource: () => getQualitySupervisions,
      dataParams: {},
      tableTitle: [
        {
          label: '项目名称',
          value: 'ProjectName',
          show: true,
          type: 'text'
        },
        {
          label: '受理部门',
          value: 'AcceptDepartment',
          show: true,
          type: 'text'
        },
        {
          label: '受理人员',
          value: 'AcceptPerson',
          show: true,
          type: 'text'
        },
        {
          label: '质量监督记录编号',
          value: 'QualityNum',
          show: true,
          type: 'text'
        },
        {
          label: '质量报监编号',
          value: 'ZlbjNum',
          show: true,
          type: 'text'
        },
        {
          label: '受理时间',
          value: 'QualityAcceptDate',
          show: true,
          type: 'text'
        },
        {
          label: '受理意见',
          value: 'QualityAcceptMark',
          show: true,
          type: 'text'
        }
      ]
    }
  },
  created() {
    this.dataParams.projectId = this.projectId
  }
}
</script>

<style scoped>

</style>
